#ifndef BALL_H
#define BALL_H


#include <iostream>

class Ball
{
    public:
        Ball();
        virtual ~Ball();

        void setZone(int fpos,int nbtracks);
        int getZone();

        void setProgress(float p);
        float getProgress();

        void setXposition(double xpos);
        double getXposition();
        void draw();
        void decAltitude(float tim);
        double getAltitude();
        bool isDead(){if (y< -2.0) return true; return false;}
        void reset(){x=0.0;y=0.0;z=0.0;progress=0.;zone=1;speed=1.0;isDying=false;}

        bool isDying;
        float speed;

    private:
        int zone; // 0, 1, 2
        float progress;
        int margins;
        double x;
        double y;
        double z;


};

#endif // BALL_H
